package com.ieng.kican.common.utils;

public class IUtil {

    public static boolean isNotObject(Object o) {
        return o != null;
    }

    public static boolean isBlank(String o) {
        if (o == null) return true;
        return o.length() == 0 && o.trim().length() == 0;
    }

    public static boolean equals(String o1, String o2) {
        if (o1 == null || o2 == null) return false;
        return o1.equals(o2);
    }

    public static boolean before(long time1, long time2) {
        if (time1 == 0) return false;
        return time1 <= time2;
    }

}
